package com.lmc.util;

import com.lmc.R;

/**
 * 健康数据里的类型
 */
public class HealthTypeUtil {

    /**
     * 根据类型获取名称
     */
    public static String getName(String name) {
        switch (name) {
            case "censusglu":

                return "血糖";

            case "censusua":

                return "尿酸";

            case "censuschol":

                return "胆固醇";


            case "censushr":
                return "心率";

            case "censusbp":
                return "血压";

            case "censusbw":
                return "体重";

            case "censustemperature":
                return "体温";

            case "censusbmi":
                return "体脂";

            case "censussleep":
                return "睡眠";

            case "censusstep":
                return "运动";

            case "censusspo":
                return "血氧";

            case "censusbk":
                return "微循环";

            case "censusrr":
                return "呼吸率";

            case "censushrv":
                return "心率变异性";

            case "censusarrhythmia":
                return "心律失常";

            case "censustg":
                return "甘油三酯";

            case "censushdlc":

                return "高密度脂蛋白胆固醇";

            case "censusldlc":

                return "低密度脂蛋白胆固醇";

            case "censustcHdlc":
                return "总胆/高密比值";
        }

        return "总胆/高密比值";

    }

    /**
     * 根据类型获取图标
     */
    public static int getLogo(String name) {
        switch (name) {
            case "censusglu":

                return R.drawable.xietang;

            case "censusua":

                return R.drawable.niaosuan;

            case "censuschol":

                return R.drawable.zongdanguchun;


            case "censushr":
                return R.drawable.xieya2;

            case "censusbp":
                return R.drawable.xieya;

            case "censusbw":
                return R.drawable.tizhong;

            case "censustemperature":
                return R.drawable.thermometer;

            case "censusbmi":
                return R.drawable.thermometer;
//
            case "censussleep"://睡眠
                return R.drawable.xunhuan;

            case "censusstep"://运动
                return R.drawable.xunhuan;

            case "censusspo":
                return R.drawable.xieyang;

            case "censusbk":
                return R.drawable.xunhuan;

            case "censusrr":
                return R.drawable.huxipinshuai;

            case "censushrv":
                return R.drawable.xinshuai;

            case "censusarrhythmia":
                return R.drawable.xinshuaijiance2;

            case "censustg":
                return R.drawable.tubiaozhizuomoban1;

            case "censushdlc":

                return R.drawable.tubiaozhizuomoban2;

            case "censusldlc":

                return R.drawable.zongdanguchun;

            case "censustcHdlc":
                return R.drawable.tc;
        }

        return R.drawable.tc;
    }

    /**
     * 根据类型获取单位
     */
    public static String getUnit(String name) {
        switch (name) {
            case "censusglu":

                return "mmol/L";

            case "censusua":

                return "";

            case "censuschol":

                return "";


            case "censushr":
                return "次/分";

            case "censusbp":
                return "mmHg";

            case "censusbw":
                return "kg";

            case "censustemperature":
                return "°C";

            case "censusbmi":
                return "%";

            case "censussleep":
                return "";

            case "censusstep":
                return "kcal";

            case "censusspo":
                return "";

            case "censusbk":
                return "";

            case "censusrr":
                return "";

            case "censushrv":
                return "";

            case "censusarrhythmia":
                return "";

            case "censustg":
                return "";

            case "censushdlc":

                return "";

            case "censusldlc":

                return "";

            case "censustcHdlc":
                return "";
        }

        return "";
    }
}
